package cool.qingqing;

import cool.SpringBootTest01Application;
import cool.qingqing.Myplan.controller.DailyController;
import cool.qingqing.Myplan.entity.Daily;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author 高山青
 * @Date 2021/12/26  -   18:51
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class MyPlanTest {
	@Autowired
	DailyController dailyController;
	@Test
	public void addDaily() {
		Daily daily=new Daily();
		daily.setdText("又有个新的方法了，完美。");
	dailyController.addDaily(daily);
	}

	@Test
	public void getPath(){
		System.out.println( System.getProperty("java.class.path"));
	}
}
